/* eslint-disable */
import { MENU_CODES, MODULES } from '@/options';
import useBaseRequest from '../../hooks/useBaseRequest';

type DataType = COMMENT_TYPE.Info;
type Params = COMMENT_TYPE.Params;
const ApiUrl = `/${MODULES.MICRO}/${MENU_CODES.COMMENT}`;

export const { getList, addItem, updateItem, delItem, detailItem } = useBaseRequest<
  DataType,
  Params
>(ApiUrl);
